package easy;

public class Solution_1550 {

    public boolean threeConsecutiveOdds(int[] arr) {
        for (int i = 0, count = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 1) {
                count++;
                if (count == 3) {
                    return true;
                }
            } else {
                count = 0;
            }
        }
        return false;
    }

    public static void main(String[] args) {
        Solution_1550 model = new Solution_1550();
    }
}
